Test-Series - programming logic

Test Number 9/15

Q: _________________ defines a set of primitive elements which do not involves any other element as its sub-part.
A. Primitive Data Structure
B. Non-Primitive Data Structure
C. Linear Data Structure
D. Non Linear Data Structure
Solution: The correct answer is:
Primitive Data Structure
Q: Primitive data Structures are generally _________ data types in programming language.
A. User Defined Data Types
B. User unDefined Data Types
C. Built in Data Types
D. Built in prototypes
Solution: The correct answer is:
Built in Data Types
Q: Tara writes an efficient program to add two upper triangular 10X10 matrices (elements on diagonal retained). How many total additions will his program make?
A. 25
B. 10
C. 100
D. 55
Solution: The correct answer is:
55
Q: What will be the output of the following code?

//assume all header files are included

void main()
{
int x=4;
int*p=&x;
int *k=p++;
int r=p-k;
printf("%d",r);
}
A. 1
B. run time error
C. 4
D. 8
Solution: The correct answer is:
1
Q: In what kind of storage we can easily insert,delete,concatenate and rearrange substrings ?
A. Array
B. Linked List
C. Stack
D. Queue
Solution: The correct answer is:
Linked List
Q: What will be the output of the following code?

void main()
{
int x=4,y,z;
y=--z;
z=x--;
printf("%d%d%d",x,y,z);
}
A. 3 2 3
B. 2 3 4
C. 2 3 3
D. 3 2 2
Solution: The correct answer is:
2 3 3
Q: Single and non-decomposable data is called ______________.
A. Numeric Data
B. Atomic Data
C. Composite Data
D. Textual Data
Solution: The correct answer is:
Atomic Data
Q: A program is compiled by Tarun on his machine. Whether it will run on a different computer will depend upon:
A. Both operating system and hardware configuration
B. Hardware configuration of the computer
C. The language of the program
D. Operating system on the computer
Solution: The correct answer is:
Both operating system and hardware configuration
Q: Non Primitive data Structures are those which define set of _________.
A. Static Elements
B. Derived Elements
C. Primitive Elements
D. None of these
Solution: The correct answer is:
Derived Elements
Q: Array is an example of ________ data structure.
A.  Non Linear Data Structure
B. Linear Structure
C. Linear Data Structure
D. Data Structure
Solution: The correct answer is:
Linear Data Structure

You Have Score    /10